<div class="container">
<div class="row">
	<div class="col-md-9">
		<div class="Content-box">
			    <h2 class="Content-title"><?php echo $Video['Video']['name']; ?></h2>
			    <div class="Content-info">
					{{substr($Video['Video']['created'],0,16)}}  &nbsp;&nbsp; 
					{{if $Video['Wx']}}
						<a href="{{$this->Html->url('/wxes/'.($Video['Wx']['slug']?$Video['Wx']['slug']:$Video['Wx']['id']))}}">{{$Video['Wx']['name']}}</a> &nbsp;&nbsp;
					{{else}}
						{{$Video['Video']['author']}}
					{{/if}} 
			 	</div>
			    {{if !empty($_SESSION['Auth']['Staff']) }}
			    	<div style="margin:10px 0;">
			    		<a class="btn btn-primary" href="{{Router::url('/manage/admin/videos/edit/'.$Video['Video']['id'])}}" target="_blank">{{__('Edit')}}</a>
			    		&nbsp;
			    		<a class="btn btn-warning" onclick="if(confirm('{{lang('are_you_sure_to_delete')}}')){ajaxAction(ADMIN_BASEURL+'/admin/videos/delete/{{$Video['Video']['id']}}');}" href="javascript:void(0)">{{__('Delete')}}</a>
			    	</div>
			 	{{/if}}  
			    <div class="Content-body clearfix">
	

				    <div class="alert alert-success">
				    	<div id="qqvideo-url">{{$Video['Video']['qq_url']}}</div>
				    	<button id="copy-qq-url">复制</button>
				    	<p>提示：复制地址到135编辑器插入文章中使用。</p>
				    </div>
				    <br/>
	{{if $Video['Video']['summary']}}			    
	<section style="white-space: normal;font-size: 14px; line-height: 25px; margin: 2px auto; padding: 15px; border: 2px dashed #dedcde;max-width: 100%;">
        <p>
            {{$Video['Video']['summary']}}
        </p>
    </section>
    <br/>
    {{/if}}
				    <div style="text-align:center;margin:0 auto;">
				    {{if $Video['Video']['qq_url']}}
				    	<iframe frameborder="0" width="680" height="520" src="{{$Video['Video']['qq_url']}}" allowfullscreen></iframe>
				    {{/if}}
					</div>
					<br/>
			    	<?php echo $Video['Video']['content']; ?>
			    	
			    	<p style="font-size: 14px;margin-top: 30px;">
				    	{{if $Video['Video']['view_nums']}}
				    	{{__('Pageview')}} <span class="ui-stats-num" id="Stats-Video-{{$Video['Video']['id']}}-view_nums"><?php echo $Video['Video']['view_nums']; ?></span>
				    	{{/if}}
			    	</p>
			    	    
		        {{$this->Hook->call("affterContent",array('Video',$Video['Video']['id']))}}
			</div>
		<!-- <div id="dialog-share" style="display:none;" title="{{lang('tips')}}">
			<div class="ui-pop-tips"><span class="ico ico-success" style="float:left;"></span><div class="tips-cnt">发表观点成功，是否也分享给您的好友？</div></div>
		</div>-->
		</div>
	</div>
	
	<div class="col-md-3">		
		
	</div>
</div>
</div>

{{$this->Html->script(array('ZeroClipboard/ZeroClipboard.min.js',));}}	
<script>
ZeroClipboard.config( { swfPath: "{{$this->Html->url('/js/ZeroClipboard/ZeroClipboard.swf')}}" } );

var client = new ZeroClipboard( $('#copy-qq-url') );
	client.on( 'ready', function(event) {
		client.on( 'copy', function(event) {
			//clean_135helper();
			var html = $('#qqvideo-url').html();
	  		event.clipboardData.setData('text/plain', html );
	  		showSuccessMessage("已成功复制到剪切板");
		});
	});

</script>